package com.youlu.campus.entity.complaint;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.youlu.campus.entity.complaint.vo.ComplaintNotifyResource;
import lombok.Data;

import java.util.Date;

@Data
public class ComplaintNotify {
     //产生新投诉
    public final static String COMPLAINT_NOTIFY_CREATE = "COMPLAINT.CREATE";

    //投诉状态变化
    public final static String COMPLAINT_NOTIFY_CHANGE = "COMPLAINT.STATE_CHANGE";
    /**
     *通知的唯一ID
     */
    private String id;
    /**
     * 通知创建时间
     */
    //@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonProperty(value = "create_time")
    private Date createTime;

    @JsonProperty(value = "resource_type")
    private String resourceType;

    /**
     * 通知类型
     * COMPLAINT.CREATE：产生新投诉
     * COMPLAINT.STATE_CHANGE：投诉状态变化
     */
    @JsonProperty(value = "event_type")
    private String eventType;

    /**
     * 摘要
     */
    private String summary;


    private ComplaintNotifyResource resource;
    /**
     * 1：修改投诉
     * 2: 新增投诉
     */
    private Integer type=1;

}
